<template>
    <div>
        <am-white-space></am-white-space>
        <am-wing-blank size="lg">
            <yx-upload v-model="imgValue"></yx-upload>
            <am-button width="300" @click="getValueClicked">获取值</am-button>
        </am-wing-blank>
        <am-white-space></am-white-space>
        <am-wing-blank>
            <am-button width="300" @click="changeValue">切换值</am-button>
        </am-wing-blank>
    </div>
</template>

<script>
    import YxUpload from 'Components/yx-upload'
    import AmButton from "../../../weex-amui/packages/am-button/index";
    import AmWingBlank from "../../../weex-amui/packages/am-wing-blank/index";
    import AmWhiteSpace from "../../../weex-amui/packages/am-white-space/index";

    export default {
        name: 'upload-demo',
        components: {AmWhiteSpace, AmWingBlank, AmButton, YxUpload },
        data (){
            return {
                imgValue:'41302ab71b1240ed96d4a23176157d32,398a6064834440c784a7d6ba96a0f0bc'
            }
        },
        methods: {
            getValueClicked (){
                this.$notice.toast({
                    message: JSON.stringify(this.imgValue)
                })
            },
            changeValue (){
                this.imgValue = '41302ab71b1240ed96d4a23176157d32'
            }
        }
    }
</script>

<style scoped>

</style>
